package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.SellMonthBean;
import com.project.bean.SellPieBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface ISellMapper extends BaseMapper<SellPieBean> {
    public List<SellPieBean> findByClasz(@Param("startDate") LocalDate startDate,
                                         @Param("endDate") LocalDate endDate);

    public List<SellPieBean> findByBrandAndClasz(@Param("startDate") LocalDate startDate,
                                                 @Param("endDate") LocalDate endDate);

    public List<SellMonthBean> findByYear(String year);

    public List<String> findAllYear();
}
